package com.SuanFa.lanqiao;

import Hash.Main;

import java.math.BigInteger;
import java.util.Scanner;

public class a1 {
    public static void main(String[] args) {
//        BigInteger bigInteger = BigInteger.valueOf(20).pow(22).mod(BigInteger.valueOf(7));
//        int result = (6 + bigInteger.intValue()) % 7;
//        System.out.println(result == 0 ? 7 : result);
        //加，减，乘，除
        BigInteger bigInteger = new BigInteger("12345");
        BigInteger bigInteger1 = new BigInteger("54321");
        BigInteger add = bigInteger.add(bigInteger1);
        System.out.println(add);
        BigInteger subtract = bigInteger.subtract(bigInteger1);
        System.out.println(subtract);
        BigInteger multiply = bigInteger.multiply(bigInteger1);
        System.out.println(multiply);
        BigInteger divide = bigInteger.divide(bigInteger1);
        System.out.println(divide);
        BigInteger remainder = bigInteger.remainder(bigInteger1);
        System.out.println(remainder);
        BigInteger mod = bigInteger.mod(bigInteger1);
        System.out.println(mod);
        double pow = Math.pow(2, 2);
        System.out.println(pow);

    }
}
